package DS0423;

public class NodeStack {
    Node head = new Node();

    public void push(int a){
        Node note = new Node();
        note.date = a;

        note.next = head.next;
        head.next = note;

    }

    public void pop(){
        head.next = head.next.next;
    }

    public int  top(){
        return head.next.date;
    }


}
